﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="managedomains.aspx.cs" Inherits="LiveWebServiceAdmin.ActionPages.managedomain1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <div>

        <script src="../Scripts/jq.js" type="text/javascript"></script>

        <script src="../Scripts/thickbox.js" type="text/javascript"></script>

        <script src="../Scripts/valign.js" type="text/javascript"></script>

        <link href="../Styles/thickbox.css" rel="stylesheet" type="text/css" />
    </div>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="IsCompleted" runat="server" />
    <div class="TB_modal" id="TB_ajaxContent">
        <div id="DomainDiv">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="ilbNewDomainName" runat="server" Text="Domain name:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbNewDomainName" runat="server" ValidationGroup="newDomain"
                            Width="100px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="Dynamic"
                            ValidationGroup="newDomain" ErrorMessage="This field is required" ControlToValidate="tbNewDomainName"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblErrorTextNewDomain" runat="server" Text="" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="btnCreateNewDomain" runat="server" Text="Create" ValidationGroup="newDomain"
                            OnClick="btnCreateNewDomain_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>

    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            if ($("#IsCompleted").attr("value") != "") {
                parent.tb_remove();
                parent.location.reload();
            };
        });
    </script>

</body>
</html>
